export class HttpError extends Error {
    response: Response;
    request: Request;

    constructor(response: Response, request: Request) {
        super(`HTTP error, status: ${response.status}`);
        this.name = 'HttpError';
        this.response = response;
        this.request = request;
    }
}